//
//  TCLYRegisterView.m
//  songYiGou
//
//  Created by LYang on 16/8/4.
//  Copyright © 2016年 Tiancheng. All rights reserved.
//

#import "TCLYRegisterView.h"

@implementation TCLYRegisterView

//没有返回值的提示框
-(void) Prompt:(NSString *)prompt Controller:(UIViewController *)controller{
    self.promptAlertCtr = [UIAlertController alertControllerWithTitle:@"提示" message:prompt preferredStyle:UIAlertControllerStyleAlert];
    [controller presentViewController:self.promptAlertCtr animated:YES completion:nil];
    
}
-(void) prompt:(NSString *)prompt Controller:(UIViewController *)controller{
    self.promptAlertCtr = [UIAlertController alertControllerWithTitle:@"提示" message:prompt preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction * determineAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        [self.promptAlertCtr dismissViewControllerAnimated:YES completion:nil];
        return ;
    }];
    [self.promptAlertCtr addAction:determineAction];
    [controller presentViewController:self.promptAlertCtr animated:YES completion:nil];
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
